import math

if __name__ == '__main__':
    x = 2
    while True:
        x1 = math.pow(12 - x ** 4, 1 / 6)
        if abs(x1 - x) < 1e-10:
            break
        x = x1
    print(x)
    print(x**6+x**4)
